package com.snk.util;

import com.snk.pojo.User;

public class UserThreadLocal {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setUser(String user){

        threadLocal.set(user);
    }

    public static String getUser(){

        return threadLocal.get();
    }

    public static void remove(){

        threadLocal.remove();
    }
}
